<div class="dux-box uk-clearfix uk-padding-small">
    <div class="img uk-float-left">
        <a href="{$info.goods_url}"><img src="{$info.goods_image}" width="65" height="65"></a>
    </div>
    <div class="uk-float-left uk-margin-small-left">
        <p><a href="{$info.goods_url}" target="_blank">{$info.goods_name}</a></p>
        <p>实付：<span class="uk-text-danger">￥{$info.price_total}</span></p>
        <p class="dux-text-disabled">
            <!--loop{(array)$info.goods_options as $v}-->
            {$v.value}
            <!--{/loop}-->
        </p>
        <p class="dux-text-disabled">购买时间: {date('Y-m-d H:i:s', $orderInfo.order_create_time)}</p>
    </div>
</div>
<br>
<!--if{$info.status == 2 && empty($info.delivery_name) && empty($info.delivery_no)}-->
<div class="dux-box">
    <div class="box-header box-header-color ">
        <div class="uk-text-default">
            退货信息
        </div>
    </div>
    <div class="box-body">

        <div class="uk-alert uk-alert-warning">
            {$receiveInfo.name} {$receiveInfo.tel} {$receiveInfo.address}
        </div>

    <form action="{url('delivery')}" class="dux-form uk-form uk-form-horizontal " data-dux="form-bind" data-advanced="false"
          method="post">
        <div class="uk-form-group">
            <label class="uk-form-label">退货快递</label>
            <div class="uk-form-controls">
                <input class="uk-form-field" type=text name="delivery_name" placeholder="请填写退货快递公司">
            </div>
        </div>
        <div class="uk-form-group">
            <label class="uk-form-label">快递单号</label>
            <div class="uk-form-controls">
                <input class="uk-form-field" type=text name="delivery_no" placeholder="请填写退货快递单号">
            </div>
        </div>
        <div class="uk-form-group">
            <div class="uk-form-controls">
                <input type="hidden" name="refund_no" value="{$info.refund_no}">
                <button type="submit" class="uk-button uk-button-primary">提交退货信息</button>
            </div>
        </div>
    </form>
    </div>

</div>
<br>

<!--{/if}-->
<div class="dux-box">
    <div class="box-header">退款详情</div>
    <div class="box-body uk-padding-small">

        <form class=" dux-form uk-form  uk-form-horizontal">
            <div class="uk-form-group">
                <label class="uk-form-label">退款状态</label>
                <div class="uk-form-controls uk-form-controls-text uk-text-primary">
                    {$info.status_data.title}
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">申请单号</label>
                <div class="uk-form-controls uk-form-controls-text">
                    {$info.refund_no}
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">申请时间</label>
                <div class="uk-form-controls uk-form-controls-text">
                    {date('Y-m-d H:i:s', $info.create_time)}
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">退货原因</label>
                <div class="uk-form-controls uk-form-controls-text">
                    {$info.cause}
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">退款金额</label>
                <div class="uk-form-controls uk-form-controls-text uk-text-danger">
                    ￥{$info.price}
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">退款运费</label>
                <div class="uk-form-controls uk-form-controls-text uk-text-danger">
                    ￥{$info.delivery_price}
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">退款描述</label>
                <div class="uk-form-controls uk-form-controls-text">
                    {$info.content}
                </div>
            </div>
            <!--if{$info.images}-->
            <div class="uk-form-group">
                <label class="uk-form-label">凭证</label>
                <div class="uk-form-controls uk-form-controls-text">
                    <ul class="dux-upload-list uk-clearfix">
                        <!--loop{$info.images as $vo}-->
                        <li>
                            <a href="{$vo}" target="_blank">
                                <img src="{$vo}" alt="">
                            </a>
                        </li>
                        <!--{/loop}-->
                    </ul>
                </div>
            </div>
            <!--{/if}-->

            <!--if{$info.delivery_name && $info.delivery_no}-->
            <div class="uk-form-group">
                <label class="uk-form-label">退货快递</label>
                <div class="uk-form-controls uk-form-controls-text">
                    {$info.delivery_name}
                </div>
            </div>

            <div class="uk-form-group">
                <label class="uk-form-label">快递单号</label>
                <div class="uk-form-controls uk-form-controls-text">
                    {$info.delivery_no}
                </div>
            </div>
            <!--{/if}-->


            <!--if{$info.process_time}-->
            <div class="uk-form-group">
                <label class="uk-form-label">处理时间</label>
                <div class="uk-form-controls uk-form-controls-text">
                    {date('Y-m-d H:i:s', $info.process_time)}
                </div>
            </div>
            <!--{/if}-->
            <!--if{$info.admin_remark}-->
            <div class="uk-form-group">
                <label class="uk-form-label">处理备注</label>
                <div class="uk-form-controls uk-form-controls-text">
                    {$info.admin_remark}
                </div>
            </div>
            <!--{/if}-->

            <div class="uk-form-group">
                <div class="uk-form-controls uk-form-controls-text">
                    <!--if{$info.status == 1}-->
                    <a href="javascript:;" data-dux="dialog-ajaxConfirm"
                       data-url="{url('cancel', ['refund_no' => $info.refund_no])}" data-title="确认要取消退款申请?"
                       class="uk-button uk-button-danger">取消申请</a>
                    <!--{else}-->
                    <a href="{url('index')}" class="uk-button uk-button-danger">返回</a>
                    <!--{/if}-->
                </div>
            </div>
        </form>
    </div>
</div>